3.280 \(\int \frac{\cos ^6(x)}{(a-a \sin ^2(x))^2} \, dx\)

Optimal. Leaf size=20 \[ \frac{x}{2 a^2}+\frac{\sin (x) \cos (x)}{2 a^2} \]

[Out]

x/(2*a^2) + (Cos[x]*Sin[x])/(2*a^2)

________________________________________________________________________________________

Rubi [A]  time = 0.0434516, antiderivative size = 20, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {3175, 2635, 8} \[ \frac{x}{2 a^2}+\frac{\sin (x) \cos (x)}{2 a^2} \]

Antiderivative was successfully verified.

[In]

Int[Cos[x]^6/(a - a*Sin[x]^2)^2,x]

[Out]

x/(2*a^2) + (Cos[x]*Sin[x])/(2*a^2)

Rule 3175

Int[(u_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_), x_Symbol] :> Dist[a^p, Int[ActivateTrig[u*cos[e + f*x
]^(2*p)], x], x] /; FreeQ[{a, b, e, f, p}, x] && EqQ[a + b, 0] && IntegerQ[p]

Rule 2635

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*Cos[c + d*x]*(b*Sin[c + d*x])^(n - 1))/(d*n),
x] + Dist[(b^2*(n - 1))/n, Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integer
Q[2*n]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rubi steps

\begin{align*} \int \frac{\cos ^6(x)}{\left (a-a \sin ^2(x)\right )^2} \, dx &=\frac{\int \cos ^2(x) \, dx}{a^2}\\ &=\frac{\cos (x) \sin (x)}{2 a^2}+\frac{\int 1 \, dx}{2 a^2}\\ &=\frac{x}{2 a^2}+\frac{\cos (x) \sin (x)}{2 a^2}\\ \end{align*}

Mathematica [A]  time = 0.0026244, size = 18, normalized size = 0.9 \[ \frac{\frac{x}{2}+\frac{1}{4} \sin (2 x)}{a^2} \]

Antiderivative was successfully verified.

[In]

Integrate[Cos[x]^6/(a - a*Sin[x]^2)^2,x]

[Out]

(x/2 + Sin[2*x]/4)/a^2

________________________________________________________________________________________

Maple [A]  time = 0.037, size = 25, normalized size = 1.3 \begin{align*}{\frac{\tan \left ( x \right ) }{2\,{a}^{2} \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+1 \right ) }}+{\frac{\arctan \left ( \tan \left ( x \right ) \right ) }{2\,{a}^{2}}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(x)^6/(a-a*sin(x)^2)^2,x)

[Out]

1/2/a^2*tan(x)/(tan(x)^2+1)+1/2/a^2*arctan(tan(x))

________________________________________________________________________________________

Maxima [A]  time = 1.48092, size = 34, normalized size = 1.7 \begin{align*} \frac{\tan \left (x\right )}{2 \,{\left (a^{2} \tan \left (x\right )^{2} + a^{2}\right )}} + \frac{x}{2 \, a^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^6/(a-a*sin(x)^2)^2,x, algorithm="maxima")

[Out]

1/2*tan(x)/(a^2*tan(x)^2 + a^2) + 1/2*x/a^2

________________________________________________________________________________________

Fricas [A]  time = 1.82461, size = 39, normalized size = 1.95 \begin{align*} \frac{\cos \left (x\right ) \sin \left (x\right ) + x}{2 \, a^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^6/(a-a*sin(x)^2)^2,x, algorithm="fricas")

[Out]

1/2*(cos(x)*sin(x) + x)/a^2

________________________________________________________________________________________

Sympy [B]  time = 47.708, size = 178, normalized size = 8.9 \begin{align*} \frac{x \tan ^{4}{\left (\frac{x}{2} \right )}}{2 a^{2} \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a^{2} \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a^{2}} + \frac{2 x \tan ^{2}{\left (\frac{x}{2} \right )}}{2 a^{2} \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a^{2} \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a^{2}} + \frac{x}{2 a^{2} \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a^{2} \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a^{2}} - \frac{2 \tan ^{3}{\left (\frac{x}{2} \right )}}{2 a^{2} \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a^{2} \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a^{2}} + \frac{2 \tan{\left (\frac{x}{2} \right )}}{2 a^{2} \tan ^{4}{\left (\frac{x}{2} \right )} + 4 a^{2} \tan ^{2}{\left (\frac{x}{2} \right )} + 2 a^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)**6/(a-a*sin(x)**2)**2,x)

[Out]

x*tan(x/2)**4/(2*a**2*tan(x/2)**4 + 4*a**2*tan(x/2)**2 + 2*a**2) + 2*x*tan(x/2)**2/(2*a**2*tan(x/2)**4 + 4*a**
2*tan(x/2)**2 + 2*a**2) + x/(2*a**2*tan(x/2)**4 + 4*a**2*tan(x/2)**2 + 2*a**2) - 2*tan(x/2)**3/(2*a**2*tan(x/2
)**4 + 4*a**2*tan(x/2)**2 + 2*a**2) + 2*tan(x/2)/(2*a**2*tan(x/2)**4 + 4*a**2*tan(x/2)**2 + 2*a**2)

________________________________________________________________________________________

Giac [A]  time = 1.16203, size = 30, normalized size = 1.5 \begin{align*} \frac{x}{2 \, a^{2}} + \frac{\tan \left (x\right )}{2 \,{\left (\tan \left (x\right )^{2} + 1\right )} a^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(x)^6/(a-a*sin(x)^2)^2,x, algorithm="giac")

[Out]

1/2*x/a^2 + 1/2*tan(x)/((tan(x)^2 + 1)*a^2)